export default {
  install (Vue) {
    Vue.directive('permissions', {
      bind (el, binding) {
        const perArrList = JSON.parse(sessionStorage.getItem('permissionsButtonArr'))
        if (perArrList && perArrList.includes(binding.value)) {
          el.style.display = ''
        } else {
          el.style.display = 'none'
        }
      },
      inserted (el, binding) {

      },
      update (el, binding) {

      }
    })
  }
}
